import request from '@/utils/request'

// 查询帮主的折扣规则
export function getGuidLeader() {
  return request({
    url: '/admin/guildLeader',
    method: 'get'
  })
}

// 添加帮组规则
export function addLeader(data) {
  return request({
    url: '/admin/guildLeader',
    method: 'post',
    data
  })
}

// 规则修改
export function updateLeader(data) {
  return request({
    url: '/admin/guildLeader',
    method: 'put',
    data
  })
}

// 规则删除
export function delLeader(data) {
  return request({
    url: '/admin/guildLeader',
    method: 'delete',
    data
  })
}
